﻿salic_law_male_only = {
    every_ruler = {
        limit = {
            NOT = { 
                has_culture = culture:occitan
                any_held_title = {
					this.title_capital_county.title_province ?= {
						geographical_region = world_middle_east
					}
				}
            }
		    culture = {
                OR = { 
                    has_cultural_pillar = heritage_frankish
                    has_cultural_pillar = heritage_central_germanic
                }
		    }
            has_religion = religion:christianity_religion
            government_has_flag = government_is_feudal
        }
        every_held_title = {
            limit = {
                tier > tier_county
                NOT = {
                    has_title_law = male_only_law
                }
            }
            add_title_law = male_only_law
        }
        add_realm_law_skip_effects = male_only_law
    }
}

byzantine_male_only = {
    every_ruler = {
        limit = {
		    culture = culture:greek
            has_religion = religion:christianity_religion
            government_has_flag = government_is_feudal
        }
        every_held_title = {
            limit = {
                tier = tier_duchy
                NOT = {
                    has_title_law = male_only_law
                }
            }
            add_title_law = male_only_law
        }
        add_realm_law_skip_effects = male_only_law
    }
}